const mysql = require("mysql2")

//创建连接池
const connection = mysql
  .createPool({
    host: "localhost",
    port: 3306,
    database: "bigevent",
    user: "root",
    password: "zq123456",
    connectionLimit: 10,
  })
  .promise()
//使用连接池

module.exports = connection
